﻿@{
    ViewBag.Title = "Nav";
}
<div class="Name"> Welcome @User.Identity.Name</div>

@section Navigation
{ 
    <div class="NavigationLeft">Student<br />
    @Html.ActionLink("Home", "Index", "Home")<br />
    @Html.ActionLink("Assignments", "Index", "Home")<br />
    @Html.ActionLink("News", "Index", "Home")<br />
    @Html.ActionLink("Tests", "Index", "Home")<br />
    @Html.ActionLink("Score", "Index", "Home")<br />
    @Html.ActionLink("Courses", "Index", "Home")
    </div>
}

@section NavigationMiddle
{ 
    <div class="NavigationMiddle"><p>Courses</p>
    @Html.ActionLink("Home", "Index", "Home")<br />
    @Html.ActionLink("Assignments", "Index", "Home")<br />
    @Html.ActionLink("News", "Index", "Home")<br />
    @Html.ActionLink("Tests", "Index", "Home")<br />
    @Html.ActionLink("Score", "Index", "Home")<br />
    @Html.ActionLink("Courses", "Index", "Home")
    

        <p>Assignments</p>
    @Html.ActionLink("Home", "Index", "Home")<br />
    @Html.ActionLink("Assignments", "Index", "Home")<br />
    @Html.ActionLink("News", "Index", "Home")<br />
    @Html.ActionLink("Tests", "Index", "Home")<br />
    @Html.ActionLink("Score", "Index", "Home")<br />
    @Html.ActionLink("Courses", "Index", "Home")


        <p>Announcements</p>
    @Html.ActionLink("Home", "Index", "Home")<br />
    @Html.ActionLink("Assignments", "Index", "Home")<br />
    @Html.ActionLink("News", "Index", "Home")<br />
    @Html.ActionLink("Tests", "Index", "Home")<br />
    @Html.ActionLink("Score", "Index", "Home")<br />
    @Html.ActionLink("Courses", "Index", "Home")
    </div>
}

@section MainContent
{
<div class="MainContent">
<table>
<caption>A list of students</caption>
<thead>
    <tr>
        <th>Name</th>
        <th>Email</th>
    </tr>
</thead>
<tbody>
@if(Model!=null)
     {
    foreach ( var student in Model )
    {
   
        <tr>
            <td>@student.Name(student.Name, new { Name = student.Name })</td>

        </tr>  
    } 
     }
</tbody>
</table>
</div>
}